#!/bin/bash

dir="./*"
for file in $dir; do
	if [ -f "$file" ]; then #当文件名有空格时，不加“”会导致too many arguments异常
		echo $file;
	else
		echo "$file"--directory;
		# cd "$file"
		cp "$file"/*.mp4 ./
		rm -rf "$file"

	fi;
done
